Error when constraining a mixin input class to an interface